package com.cn.yang.service.impl;

import com.cn.yang.bean.DianDao;
import com.cn.yang.dao.DianDaoDao;
import com.cn.yang.service.DianDaoService;
import com.cn.yang.util.SortUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DianDaoServiceImpl implements DianDaoService {
    @Autowired
    DianDaoDao dianDaoDao;
    @Override
    public int dianDaoAdd(List<DianDao> list) {
        return dianDaoDao.dianDaoAdd(list);
    }

    @Override
    public List<DianDao> dianDaoState() {
        return dianDaoDao.dianDaoState();
    }

    @Override
    public List<DianDao> selectAllData(DianDao dianDao) {
        return dianDaoDao.selectAllData(dianDao);
    }

    @Override
    public int selectToday(DianDao dianDao) {
        return dianDaoDao.selectToday(dianDao);
    }
}
